package com.hxl.tech.gateway.auth.dto.user;


import com.hxl.tech.gateway.auth.annotate.EnumCheck;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;

/**
 * 用户 DTO 
 * @author soliddq
 * @date 2023-10-10
 */
@Data
public class UserUpdateDTO {

    @ApiModelProperty(value = "用户Id", name = "user_id", required = true)
    @NotEmpty
    private String userId;

    @ApiModelProperty(value = "用户名称", name = "user_name", required = false)
    private String userName;

    @ApiModelProperty(value = "真实姓名", name = "real_name", required = false)
    private String realName;

    @ApiModelProperty(value = "角色名称(开发者|管理员)", name = "role_name", required = false)
    @EnumCheck(enumString = "开发者|管理员")
    private String roleName;

    @ApiModelProperty(value = "密码", name = "password", required = false)
    private String password;

    @ApiModelProperty(value = "电话", name = "phone", required = false)
    private String phone;

}
